package test_swing;
import java.io.*;
import java.awt.Desktop;

public class pdf {
	public static void main(String args[])throws IOException
	{
	File file=new File("x:\\dev\\test.txt");
	Desktop desktop = Desktop.getDesktop();
	desktop.edit(file); 
	}

}


